package com.jx.lcs.integral.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/** 
 * 积分活动
 * @author JiaYY 
 * @date 2015年8月27日
 */

@Entity
@Table(name = "tb_integral_activity")
@DynamicInsert
@DynamicUpdate
public class IntegralActivity {

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID", unique = true, nullable = false)
	private String id;
	
	@Column(name = "BEGINTIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date beginTime;
	
	@Column(name = "ENDTIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date endTime;
	
	@Column(name = "MULTIPLE")
	private Float multiple;
	
	@Column(name = "RECORDTIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date recordTime;
	
	@Column(name = "MEMO")
	private String memo;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Float getMultiple() {
		return multiple;
	}

	public void setMultiple(Float multiple) {
		this.multiple = multiple;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	
}
